/*
 * @ author Junr
 * @ use 用户相关
 */
import Request from '../request';
// import tools from '../../utils/tools';
export default {
  // 文件上传
  fileUpload (params) {
    return Request.post({
      url: `/m/upload`,
      params
    });
  },
  // Base64上传
  cardFileUpload (params) {
    return Request.post({
      url: `/m/upload/base64`,
      params
    });
  },
  // 搜索
  searchHistory (params) {
    return Request.post({
      url: `/m/search/history`,
      params
    });
  },

  // 帮助中心
  getQuestionsList (params) {
    return Request.post({
      url: `/common/questions/list`,
      params
    });
  },
  // 帮助中心详情
  getQuestionsDetail (params) {
    return Request.post({
      url: `/common/questions/detail/${params.id}`,
      params
    });
  },
  // 注册协议和商业策略
  getCnt (params) {
    return Request.post({
      url: `/cnt/${params.code}`,
      params
    });
  },
  getBannerList (params) {
    return Request.post({
      url: `/ads/list/${params.code}`,
      params
    });
  },
  getShopList (params) {
    return Request.post({
      url: `/shop/rec`,
      params
    });
  },
  getFloorList (params) {
    return Request.post({
      url: `/floor`,
      params
    });
  }
};
